def get_prime(num):
    if num <= 1:
        return []
    for i in range(2, int(num ** 0.5) + 1):
        if num % i == 0:
            return False
    return True

n = int(input("请输入正整数n的值："))

prime = []

for i in range(n):
    if get_prime(i):
        prime.append(i)

print(f"小于正整数n的质数列表为：{prime}")

